var proxyUrl = 'DotNet/proxy.ashx';

// var interfaceUrlPrefix = "http://sping.tunnel.qydev.com/paddypest-api/";
var interfaceUrlPrefix = 'http://czhua.iok.la:28493/paddypest-api/';

var basemapServerUrl = "http://183.62.243.20:8002/arcgis/rest/services/GDDLG/MapServer";

var geometryServiceUrl = 'http://localhost:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer';

var xzqhMapServiceUrl = "http://localhost:6080/arcgis/rest/services/Interpolate/GDSXZQH/MapServer";
var xzqhLayerUrl = xzqhMapServiceUrl + '/1';

var pointLayerServiceUrl = xzqhMapServiceUrl + '/2';

var idwGpServerUrl="http://localhost:6080/arcgis/rest/services/Interpolate/IdwServer/GPServer/Idw";
var idwKLJGpServerUrl="http://localhost:6080/arcgis/rest/services/Interpolate/IdwKLJServer/GPServer/IdwKLJ";
var idwYTGpServerUrl="http://localhost:6080/arcgis/rest/services/Interpolate/IdwYTServer/GPServer/IdwYT";
var wkidValue = 4490;

var stationsList_Url = interfaceUrlPrefix + 'stations/list';
// var stationsList_Url = 'json/stationlist.json';
var stationNoList_Url = interfaceUrlPrefix + "gis/stationNoList";
// var stationNoList_Url = "json/stationNoList.json";
var stationsCityScope_Url = interfaceUrlPrefix + 'stations/cityScope';
var analyzevariableTablelist_Url = interfaceUrlPrefix + 'analyzevariable/tablelist';

var gaoZhouLayerServiceUrl="http://localhost:6080/arcgis/rest/services/Interpolate/GaoZhouDianTouYing/MapServer";
var gaoZhouWRJCDYLayerServiceUrl="http://localhost:6080/arcgis/rest/services/Interpolate/GaoZhouDianTouYing/MapServer/1";
var gaoZhouDBJCDYLayerServiceUrl="http://localhost:6080/arcgis/rest/services/Interpolate/GaoZhouDianTouYing/MapServer/0";
var waringColors = {
  "1级": '#40D9FF',
  "2级": "#52F957",
  "3级": "#FDF01F",
  "4级": "#ED8226",
  "5级": "#DB4521",
};

var dateOperator = {
  getformatDate: function (date) {
    date = GB2312UnicodeConverter.ToUnicode(date);
    date = date.replace('\\u5e74', '\\u002f'); //年替换为/
    date = date.replace('\\u6708', '\\u002f'); //月替换为/
    date = date.replace('\\u65e5', '');
    date = GB2312UnicodeConverter.ToGB2312(date);
    return date;
  }
};

var GB2312UnicodeConverter = {
  ToUnicode: function (str) {
    return escape(str).toLocaleLowerCase().replace(/%u/gi, '\\u');
  },
  ToGB2312: function (str) {
    return unescape(str.replace(/\\u/gi, '%u'));
  }
};